1: | from(X) | → cons(X,n__from(n__s(X))) | |
2: | head(cons(X,XS)) | → X | |
3: | 2nd(cons(X,XS)) | → head(activate(XS)) | |
4: | take(0,XS) | → nil | |
5: | take(s(N),cons(X,XS)) | → cons(X,n__take(N,activate(XS))) | |
6: | sel(0,cons(X,XS)) | → X | |
7: | sel(s(N),cons(X,XS)) | → sel(N,activate(XS)) | |
8: | from(X) | → n__from(X) | |
9: | s(X) | → n__s(X) | |
10: | take(X1,X2) | → n__take(X1,X2) | |
11: | activate(n__from(X)) | → from(activate(X)) | |
12: | activate(n__s(X)) | → s(activate(X)) | |
13: | activate(n__take(X1,X2)) | → take(activate(X1),activate(X2)) | |
14: | activate(X) | → X | |
15: | 2nd#(cons(X,XS)) | → HEAD(activate(XS)) | |
16: | 2nd#(cons(X,XS)) | → ACTIVATE(XS) | |
17: | TAKE(s(N),cons(X,XS)) | → ACTIVATE(XS) | |
18: | SEL(s(N),cons(X,XS)) | → SEL(N,activate(XS)) | |
19: | SEL(s(N),cons(X,XS)) | → ACTIVATE(XS) | |
20: | ACTIVATE(n__from(X)) | → FROM(activate(X)) | |
21: | ACTIVATE(n__from(X)) | → ACTIVATE(X) | |
22: | ACTIVATE(n__s(X)) | → S(activate(X)) | |
23: | ACTIVATE(n__s(X)) | → ACTIVATE(X) | |
24: | ACTIVATE(n__take(X1,X2)) | → TAKE(activate(X1),activate(X2)) | |
25: | ACTIVATE(n__take(X1,X2)) | → ACTIVATE(X1) | |
26: | ACTIVATE(n__take(X1,X2)) | → ACTIVATE(X2) | |